package com.allwees.data;

import com.allwees.core.cache.annotation.EnableCache;
import com.allwees.core.elasticsearch.configuration.EnableElasticsearch;
import com.allwees.core.mq.rabbitmq.annotation.EnableMq;
import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.transaction.annotation.EnableTransactionManagement;

import java.util.Date;

//import com.allwees.core.dao.configuration.EnableDao;

@SpringBootApplication
@EnableConfigurationProperties
@ServletComponentScan
@EnableTransactionManagement
@EnableAsync
@ComponentScan(basePackages = {"com.allwees"})
@EnableMq
@EnableElasticsearch
@EnableCache
@MapperScan({"com.allwees.data.**.dao"})
@Slf4j
public class DataPortServerApplication {
    public static void main(String[] args) {
        log.info(">>>>>>>>>>>>>>>>>>>> current time:{} <<<<<<<<<<<<<<<<<<<<", new Date());
        // 启动Spring的应用上下文
        SpringApplication app = new SpringApplication(DataPortServerApplication.class);

        app.run(args);
    }
}
